﻿using FreeSql.DataAnnotations;
using IMES.Common.Dtos;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IMES.Common.Domain.SirModel
{
    /// <summary>
    /// 物料信息表
    /// </summary>
    public class Material:Audit
    {
        /// <summary>
        /// 物料信息主键ID
        /// </summary>
        [Column(IsIdentity = true, IsPrimary = true)]
        public int MaterialId { get; set; }
        
        /// <summary>
        /// 产品编号
        /// </summary>
        public int ProductId { get; set; }

        /// <summary>
        /// 单位用量
        /// </summary>  
        public int UnitMach { get; set; }
        /// <summary>
        /// 父级物料
        /// </summary>
        public int? ParentId { get; set; }

    }
}
